﻿// -------------------------------------------------------------------------
//    @FileName         :    NFTransBatchSimpleBase.h
//    @Author           :    gaoyi
//    @Date             :    2025-03-27
//    @Email			:    445267987@qq.com
//    @Module           :    NFTransBatchSimpleBase
//
// -------------------------------------------------------------------------

#pragma once

#include "NFLogicCommon/NFLogicShmTypeDefines.h"
#include "NFServerComm/NFServerCommon/NFCacheDataGetTrans.h"

class NFTransBatchSimpleBase : public NF_OBJECT_TEMPLATE_MACRO(NFTransBatchSimpleBase, EOT_TRANS_BATCH_SIMPLE_BASE, NFCacheDataGetTrans)
public:
    NFTransBatchSimpleBase();

    ~NFTransBatchSimpleBase() override;

    int CreateInit();

    int ResumeInit();
public:
    /**
     * @brief 获取缓存数据返回
     * @param ullId   目标ID
     * @param iTableId 表ID/类型
     * @param iReason 调用原因
     * @param errCode 错误码
     */
    int GetCacheDataRes(int ullId, int iTableId, int iReason, int32_t errCode, google::protobuf::Message* pMessage) override;
};
